﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
namespace BanHangCshap
{
    public static class DatabaseStatic
    {
        public static SqlConnection conn;
        public static SqlTransaction sqltrans;
        static DatabaseStatic()
        {
            conn = new SqlConnection();
            //sqltrans = new SqlTransaction();
        }
        public static string authenwindows = "false";
        public static string servername = "";
        public static string username = "";
        public static string password = "";
        public static string database = "";
        public static string path = "";
        public static void CloseConnection()
        {
            if (conn.State != ConnectionState.Closed)
            {
                conn.Close();
                conn.Dispose();
            }
        }
    }
}
